//
//  EllipseCycleScrollView.h
//  NongWanCloud
//
//  Created by YueWen on 2018/2/1.
//  Copyright © 2018年 YueWen. All rights reserved.
//

#import "RITLSDCycleScrollView.h"
#import "EllipsePageControl.h"

NS_ASSUME_NONNULL_BEGIN

@class RITLEllipseCycleScrollView;

@protocol RITLEllipseCycleScrollViewPageConfiguration <NSObject>

@optional

/// 自定义配置
- (void)ritlEllipseCycleScrollViewConfiguratePageControl:(RITLEllipseCycleScrollView *)view;

/// pageControl的大小控制
- (CGSize)ritlEllipseCycleScrollView:(RITLEllipseCycleScrollView *)view sizeForPageControl:(CGSize)size;

/// 是否是居中,默认为true
- (BOOL)ritlEllipseCycleScrollViewConfiguratePageControlIsMiddle:(RITLEllipseCycleScrollView *)view;

@end

/// - 搭载 `EllipsePageControl` 的 SDCycleScrollView
@interface RITLEllipseCycleScrollView : RITLSDCycleScrollView

/// 配置
@property (nonatomic, weak, nullable) id<RITLEllipseCycleScrollViewPageConfiguration> configuration;
/// 页码控制视图
@property (nonatomic, strong, readonly, nullable) EllipsePageControl* el_pageControl;

@end

NS_ASSUME_NONNULL_END
